<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% String cpath = request.getContextPath(); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>쿠폰수정페이지</title>
<link href="<%=cpath%>/resources/css/coupon_css.css" rel="stylesheet" type="text/css">
</head>
<body>

<form name="update" action="<%=cpath%>/coupon/update?coupon_num=${dto.coupon_num}&curPage=${listDTO.curPage}"  method="post" enctype="multipart/form-data">
<table width="600" height="475" align="center" border="0" cellspacing="1" bgcolor="#FFC0CB">
  <tr>
    <td bgcolor="ffffff"> 쿠폰번호</td>
    <td bgcolor="ffffff">
      <div align="left">
        <input type="text" name="coupon_num" readonly disabled style="overflow:hidden" value="${dto.coupon_num }" >
      </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">쿠폰명</td>
    <td bgcolor="ffffff">
    <div align="left">
      <input type="text" name="coupon_name" value="${dto.coupon_name}">
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">유의사항</td>
    <td bgcolor="ffffff"><div align="left">
      <textarea name="coupon_notice" >${dto.coupon_notice}</textarea>
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">시작일</td>
    <td bgcolor="ffffff"><div align="left">
      <input type="text" name="coupon_startdate" value="${dto.coupon_startdate}">
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">종료일</td>
    <td bgcolor="ffffff"><div align="left">
      <input type="text" name="coupon_enddate"  value="${dto.coupon_enddate}">
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">상세</td>
    <td bgcolor="ffffff"><div align="left">
      <textarea name="coupon_details">${dto.coupon_details}</textarea>
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">할인율</td>
    <td bgcolor="ffffff"><div align="left">
      <input type="text" name="coupon_discount" value="${dto.coupon_discount}">
    </div></td>
  </tr>
  <tr>
    <td bgcolor="ffffff">이미지</td>
    <td bgcolor="ffffff"><div align="left">
      <input type="file" name="file">
    </div></td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="ffffff">
    		
        <div align="center">
        
		  <input type="submit" value="수정">
		  &nbsp;&nbsp;&nbsp;
          <input type="reset" value="취소">
           &nbsp;&nbsp;&nbsp;
          <input type="Button" value="목록" onClick="location.href='<%=cpath %>/coupon/list?curPage=${listDTO.curPage}'" >

        </div>    
     </td>
  </tr>
</table>
</form>
</body>
</html>